<?php
declare (strict_types = 1);

namespace app\model\table\union;

use app\model\BaseModel;
use app\model\table\user\User;
use think\Model;

/**
 * @mixin \think\Model
 */
class UnionHelp extends BaseModel
{
    protected $table = 'app_union_help';

    // 是否全表缓存到redis
    public $tableToRedis = false;

    // 该表缓存到redis的策略
    public $tableToRedisKey = [];

    public $joinWithList=array(
        'UserInfo'=>array(
            'selfColumn'=>'user_id',
            'joinObj'=> User::class,
            'joinColumn'=>'id',
            'selectColumn'=>'id,name'
        ),
    );
}
